package com.blogs.message;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: xiaokai
 * @Description: 创建消息消费者
 * @Date: 2019/5/30
 * @Version: 1.0
 */
@Component
@RabbitListener(queues = "hello")
public class Receiverc {

    @RabbitHandler
    public void proccess(String hello) {
        System.out.println("Receiverc: " + hello);
    }
}
